import request from "@/utils/request"

//列表查询
export const queryAllApi = (params) => request.get('/clazzs', { params })

//新增班级
export const addClazzApi = (data) => request.post('/clazzs', data)

//根据id查询班级
export const getClazzById = (id) => request.get(`/clazzs/${id}`)

//修改班级
export const updateClazz = (data) => request.put('/clazzs', data)

//删除班级
export const deleteClazz = (id) => request.delete(`/clazzs/${id}`)
// 查询所有班级
export const getAllClazz = () => request.get('/clazzs/list')